package ysq.xyg.model;import lombok.Data;import javax.persistence.Column;import javax.persistence.Id;import javax.persistence.Table;import javax.persistence.Transient;import java.io.Serializable;import java.util.Date;/** * 领导 * */@Data@Table(name = "xyg_leader")public class Leader implements Serializable {    @Id    private String id;    private String name;    @Column(name = "department_id")    private String departmentId;    private int num;    //创建时间    @Column(name = "create_time")    private Date createTime;    @Transient    private String departmentName;    public Leader() {    }    public Leader(String name, String departmentId) {        this.name = name;        this.departmentId = departmentId;    }}